package com.mt.edu.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 类名称：Course2Courseware <br>
 * 类描述： 每个课程包含的课件<br>
 * 创建人： 马腾 <br>
 * 创建时间：Apr 28, 2014 8:54:52 PM <br>
 * 修改人： 马腾 <br>
 * 修改时间：Apr 28, 2014 8:54:52 PM <br>
 */
@Entity
@Table(name="OL_COURSE_CWARE")
public class Course2Courseware implements Serializable {
	
	private static final long serialVersionUID = -5561028787833684028L;

	@Id
	@Column(name = "CCW_ID")
	private String id;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="COURSES_ID")
	private Course course;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="COURSEWARE_ID")
	private Courseware courseware;
	
	@Column(name = "CREATE_DT")
	private Date createDt;
	
	@Column(name = "OPERATOR")
	private String operator;
	
	@Column(name = "RESERVED1")
	private String reserved1;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public Courseware getCourseware() {
		return courseware;
	}

	public void setCourseware(Courseware courseware) {
		this.courseware = courseware;
	}

	public Date getCreateDt() {
		return createDt;
	}

	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getReserved1() {
		return reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}
}
